package cn.ronghuanet.base.query;

import lombok.Data;

//基础查询
@Data
public class BaseQuery {
    //当前页
    private Integer currentPage=1;
    //每页展示的条数
    private Integer pageSize=5;
    //待条件的查询
    private String keyword;
    //计算当前页的起始下标:limit 起始下标,每页条数
    public Integer getBeginIndex(){
        return (this.currentPage-1)*this.pageSize;
    }
}
